<%-- 
    Document   : sidebar
    Created on : Mar 7, 2012, 11:43:19 AM
    Author     : Tri ben tre
--%>

<%@page import="MODEL.POJO.Users"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div id="sidebar">
    <%
        Users u = (Users) session.getAttribute("user");
        if (u != null) {
    %>
    <div class="sidebar_box">
        <h3 class="hr_divider">Personal information</h3>
        <ul class="tmo_list">
            <li><b>Full-name:</b> <%= u.getUserFullname() %></li>
            <li><b>Identify card:</b> <%= u.getUserIdentityCard() %></li>
            <li><b>Birthday:</b> <%= u.getUserBirthday() %></li>
            <li><a href="ReviewListTest?Action=View" style="text-decoration: underline; color:blue;"><b>History</b></a></li>
            <li><a href="LogoutController" style="text-decoration: underline; color:blue;"><b>Log out</b></a></li>
        </ul>
    </div>
    <%    }
    %>
    <div class="sidebar_box">
        <h3 class="hr_divider">Recent Posts</h3>
        <div class="recent_comment_box">
            <a href="#">Lorem ipsum dolor si</a>
            <p> Pellentesque tempus sapien nec sem commodo ullamcorper.</p>
        </div>

        <div class="recent_comment_box">
            <a href="#">Aenean feugiat mattis</a>
            <p>Vestibulum nisl mauris, malesuada nec, dictum in, molestie in.</p>
        </div>

    </div>

</div>
